﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CarCrash.Application.Forms
{

    public partial class MainForm : Form
    {

        public MainForm()
        {
            InitializeComponent();
            this.display.MouseClick += new System.Windows.Forms.MouseEventHandler(display.ProcessMouseClick);
            this.display.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(display.ProcessMouseDoubleClick);
            this.display.MouseDown += new System.Windows.Forms.MouseEventHandler(display.ProcessMouseDown);
            this.display.MouseUp += new System.Windows.Forms.MouseEventHandler(display.ProcessMouseUp);
            this.display.MouseMove += new System.Windows.Forms.MouseEventHandler(display.ProcessMouseMove);
        }

        private void openObjectsDialog()
        {
            ObjectDialog dialog = new ObjectDialog();
            dialog.Owner = this;
            dialog.Show();
        }

        private void объектыToolStripButton_Click(object sender, EventArgs e)
        {
            openObjectsDialog();
        }

        private void toolStripОбъекты_Click(object sender, EventArgs e)
        {
            openObjectsDialog();
        }

        private void каталогАвтомобилейToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AutoCatalog dialog = new AutoCatalog();
            dialog.Owner = this;
            dialog.ShowDialog();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {

        }

    }

}